
#CLASSROOT= /home/mclamp/cvs/pogvue/classfiles
#JARFILES = /home/mclamp/cvs/pogvue/jars
CLASSROOT= /Users/mclamp/cvs/pogvue/classfiles
JARFILES = /Users/mclamp/cvs/pogvue/jars
#CLASSROOT= /ahg/scr3/cvs/pogvue/classfiles
#JARFILES = /ahg/scr3/cvs/pogvue/jars

#JAVA = /ahg/scr3/src/jdk1.6.0_05/
#JAVA = /usr/java/java1.5/
#JAVA = /usr/lib/jvm/java-6-sun/
JAVA = /usr/

CLASSPATH=.:$(CLASSROOT):$(JARFILES)/patbinfree153.jar:$(JARFILES)/looks-1.3.1.jar:$(JARFILES)/forms-1.1.0.jar:$(JARFILES)/epsgraphics.jar

install: all

clean:
	find . -name '*.class' -exec rm {} \;

CC      = $(JAVA)/bin/javac -classpath $(CLASSPATH) -d $(CLASSROOT)

all:	datamodel io gui guihub guievent guipopups guimenus guischemes blast analysis applet guipopups guimenus util jar math

jar:
	cd classfiles ; ./makejar ; cd .. ; echo poggywog | jarsigner jars/pogvue.jar pogvue


io:	$(IOCLASS)
	$(CC) $(IO)

gui:	$(GUICLASS)
	$(CC) $(GUI)

guihub:	$(GUICLASS)
	$(CC) $(GUIHUB)

guievent: $(GUIEVENTCLASS)
	$(CC) $(GUIEVENT)

analysis: $(ANALYSISCLASS)
	$(CC) $(ANALYSIS)

blast: $(BLASTCLASS)
	$(CC) $(BLAST)

applet:	$(APPLETCLASS)
	$(CC) $(APPLET)

datamodel: $(DATAMODELCLASS)
	$(CC) $(DATAMODEL)

guimenus: $(GUIMENUSCLASS)
	$(CC) $(GUIMENUS)

guipopups: $(GUIPOPUPSCLASS)
	$(CC) $(GUIPOPUPS)

guischemes: $(GUISCHEMESCLASS)
	$(CC) $(GUISCHEMES)

math: $(MATHCLASS)
	$(CC) $(MATH)

util: $(UTILCLASS)
	$(CC) $(UTIL)

IO = src/pogvue/io/*.java

GUI = src/pogvue/gui/*.java

GUIHUB = src/pogvue/gui/hub/*.java

GUIEVENT = src/pogvue/gui/event/*.java

GUIMENUS = src/pogvue/gui/menus/*.java

GUIPOPUPS = src/pogvue/gui/popups/*.java

GUISCHEMES = src/pogvue/gui/schemes/*.java

MATH = src/pogvue/math/*.java

UTIL = src/pogvue/util/*.java

DATAMODEL = src/pogvue/datamodel/*.java

APPLET = src/pogvue/applet/*.java

ANALYSIS =  src/pogvue/analysis/*.java

BLAST =  src/pogvue/analysis/blast/*.java

